#include<stdio.h>

int main()
{
    int n;
    scanf("%d",&n);
    int a[100];
    int i=0;
    while(n)
    {
        a[i]=n&1;
        n>>=1;
        i++;
    }
    while(i--)
        printf("%d",a[i]);
}
